package com.example.demo.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.demo.entity.SerialNumber;
import com.example.demo.service.SerialNumberService;
import com.example.demo.mapper.SerialNumberMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author 18364
* @description 针对表【serial_number】的数据库操作Service实现
* @createDate 2025-02-06 13:56:16
*/
@Service
public class SerialNumberServiceImpl extends ServiceImpl<SerialNumberMapper, SerialNumber>
    implements SerialNumberService{
    @Autowired
    SerialNumberMapper serialNumberMapper;

    @Override
    public SerialNumber select(String type) {
        QueryWrapper<SerialNumber> queryWrapper=new QueryWrapper<>();
        queryWrapper.eq("type",type);

        return serialNumberMapper.selectOne(queryWrapper);
    }
}




